package cn.sumpu.app.guoguojie.biz;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import cn.sumpu.app.guoguojie.domain.Album;
import cn.sumpu.app.guoguojie.domain.Member;
import cn.sumpu.app.guoguojie.domain.Picture;
import cn.sumpu.app.guoguojie.domain.Ext.PageModel;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;
import cn.sumpu.app.guoguojie.util.PictureUrl;

public interface AlbumBiz {

	public Album createAlbum(Album album) throws AppBusinessException;

	public List<Album> viewAlbum() throws AppBusinessException;
	
	public PageModel albumList(String family,Integer page)throws AppBusinessException;
	
	public PageModel photoList(String family,String album,Integer page)throws AppBusinessException;
	
	public List<Picture> getPhotoList(String family,String album)throws AppBusinessException;
	
	public List<Album> getAlbumList(String family)throws AppBusinessException;
	
	public void uploadPhoto(HttpServletRequest request)throws AppBusinessException;
	
	public PictureUrl uploadImage(HttpServletRequest request, boolean uploadServer,String picType,boolean isZip)throws AppBusinessException;
	
	public Album getAlbumById(String id)throws AppBusinessException;
	
	public Album saveAlbum(Album album)throws AppBusinessException;
	
	public void deleteAlbum(Member member,String webPath,String album)throws AppBusinessException;
	
	public void deletePhoto(String webPath,String photoId,String album,boolean deleteCoverFlag,String imageServer)throws AppBusinessException;
	
	public PageModel albumFriendList(String family,Integer page)throws AppBusinessException;
 
}
